var a = 2;
function add(b,c) {
    return b+c;
}
function addAll(b,c) {
    var d = 10;
    var result = add(b,c);
    return a+result+d;
}

console.log(addAll(3,6))